FROM centos
LABEL maintainer="luonancom@qq.com"
ARG work=/var/www/classmates
RUN mkdir -p ${work}
WORKDIR ${work} 
COPY  ./conf/app_docker.conf ./conf/app.conf
COPY  ./swagger ./swagger
COPY  ./views ./views
COPY  ./static ./static
COPY  --chown=root ./classmates . 
ENV PATH="${work}:${PATH}"
EXPOSE 80
ENTRYPOINT ["./classmates"]




